<form id="formEditImages" name="formEditImages" enctype="multipart/form-data" method="post" action="<?php echo site_url(array('project','saveImages',$this->uri->segment(3,0)))?>">
<?php 
	foreach ($query->result() as $row):
?>

                    <table bgcolor="#FFFFFF" width="0" border="0" cellspacing="2" cellpadding="3">
                <tr>
                  <td align="right" valign="top">Name :</td>
                  <td valign="top"><input class="validate['required']" type="text" name="name" id="name" value="<?php echo $row->name?>" />
                    <input type="hidden" name="album" id="album" value="<?php echo $this->uri->segment(3,0)?>" /></td>
                </tr>
                <tr>
                  <td align="right" valign="top">Tag :</td>
                  <td valign="top"><input class="validate['required']" type="text" name="tag" id="tag" value="<?php echo $row->tag?>" /></td>
                </tr>
                <tr>
                  <td align="right" valign="top">Description :</td>
                  <td valign="top"><textarea class="validate['required']" name="description" cols="30" rows="5" id="description"><?php echo $row->description?></textarea></td>
                </tr>
               
              </table>
           
  <?php 
  	endforeach;
  ?>
</form>